package org.lisen.patterndemo.chain.v01;

import org.lisen.patterndemo.chain.Message;

public class WordFilter implements Filter {

    @Override
    public void doFilter(Message message) {
        String content = message.getContent();
        content = content.replace("苍井空", "***");
        content = content.replace("波多野结衣", "*****");
        message.setContent(content);
    }

}
